package com.arpa.ntocc.common.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * UserLoginSearchDTO对象
 * </p>
 *
 * @author leo
 * @since 2021-1-19
 */
@Data
@ApiModel(value = "UserLoginSearchDTO对象", description = "账号列表查询")
public class UserLoginSearchDTO implements Serializable {
    @ApiModelProperty(value = "登录账号")
    private String userLoginId;
    @ApiModelProperty(value = "用户名")
    private String name;
    @ApiModelProperty(value = "网点编码")
    private String branchCode;
    @ApiModelProperty(value = "部门编码")
    private String departmentCode;
    @ApiModelProperty(value = "角色code")
    private String roleCode;

    @ApiModelProperty(value = "创建时间起始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreatedStart;

    @ApiModelProperty(value = "创建时间终止")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreatedEnd;

    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;
}

